#ifndef FORM_HEALTH_H
#define FORM_HEALTH_H

#include <QEvent>
#include <QStandardItemModel>
#include <QWidget>

namespace Ui {
class FormHealth;
}

class FormHealth : public QWidget
{
	Q_OBJECT

public:
    explicit FormHealth(QWidget* parent = nullptr);
    ~FormHealth();

	void saveJson();

	bool readJson();

public:
	int curIndex;
	QStandardItemModel* model_data;
	void init_tableview();

	void update_tableview();

private:
    Ui::FormHealth* ui;

    // QObject interface
public:
    bool event(QEvent *event);
};

#endif // FORM_HEALTH_H
